<%@ page import="com.zafu.dao.AccountBean" %>
<%@ page import="com.zafu.entity.AccountInfo" %>
<%@ page import="java.net.URLDecoder" %>
<%--
  Created by IntelliJ IDEA.
  User: 86189
  Date: 2024/12/11
  Time: 18:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String phone = request.getParameter("phone");
    if(phone != null && phone.length() > 0)
        phone = URLDecoder.decode(phone, "UTF-8");

    String password = request.getParameter("password");
    if(password != null && password.length() > 0)
        password = URLDecoder.decode(password, "UTF-8");

    String name = request.getParameter("name");
    if(name != null && name.length() > 0)
        name = URLDecoder.decode(name, "UTF-8");

    String people_name = request.getParameter("people_name");
    if(people_name != null && people_name.length() > 0)
        people_name = URLDecoder.decode(people_name, "UTF-8");

    AccountInfo info = new AccountInfo(phone, password, name, people_name, "0", "");
    //AccountInfo info = new AccountInfo("123","123", "123", "123", "123", "123");
    AccountBean bean = new AccountBean();
    out.println("插入成功");
    bean.Add(info);
%>
